# https://www.bilibili.com/video/BV1W7411G7wP/?p=9&spm_id_from=pageDriver&vd_source=8bd7b24b38e3e12c558d839b352b32f4
# 柱图
import pandas as pd
import matplotlib.pyplot as plt

students = pd.read_excel('../resources/input_py_tools/009/Students.xlsx')
print(students)

students.sort_values(by='Number', inplace=True, ascending=False)

# 制图
students.plot.bar(x='Field', y='Number', color='orange', title='International Students by Field')
plt.tight_layout() # 展示标签
plt.show()
#students.plot() # 不好使


